home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.5 KB | 36 lines | [TEXT/MPS ] |
- # UserStartup•MacApp
- # Copyright © 1986-96 by Apple Computer, Inc. All rights reserved.
- #
- # Drop this file in your MPW Folder
-
- # Change History:
- # 4/17/95 TWB Restore exit to its previous value instead of setting it to 1.
- # 11/10/94 TWB It's ok if there are any items in the Startup folder.
- # Don't require the startup file to be named "Startup".
-
- # Set the location of the MacApp Folder
- # If the folder can't be found; automatically prompts user for it and
- # remember where the folder was found
-
- if ¬ "{MacApp}" && "`Exists "{ShellDirectory}"MacApp_Folder`"
- Set MacApp "`Catenate "{ShellDirectory}"MacApp_Folder`"
- End
- if ¬ "`Exists "{ShellDirectory}"MacApp_Folder`" || ¬ "`Exists "{MacApp}"`"
- Set SaveExit "{exit}"; Set exit 0; Set temp "{Boot}"; Loop; ∂
- Set temp "`(GetFileName "{temp}" -q -d -m "Where is your ∂"MacApp∂" folder?")≥dev:null`"; ∂
- if "{temp}"!=""; Echo -n "{temp}" > "{ShellDirectory}"MacApp_Folder; ∂
- Set MacApp "{temp}"; Else; exit; End; ∂
- (set x "`Files "{temp}Startup Items:"`") ≥dev:null; ∂
- if "{x}"==""; Alert MacApp - The ∂"{temp}∂" folder does not contain MacApp files.; else; break; end; End; ∂
- set exit "{SaveExit}"; unset SaveExit;
- End
-
- Set MacApp "`Catenate "{ShellDirectory}"MacApp_Folder`"
- Export MacApp
-
- # Execute the files should located in the Startup Items folder in the folder containing MacApp.
- For __Startup__i in `(Files -f -t TEXT "{MacApp}Startup Items:" || Set Status 0) ≥ dev:null`
- Execute "{__Startup__i}"
- End
- Unset __Startup__i
-